import Vue from 'vue'
import Router from 'vue-router'
import Main from '@/components/tem/Main'
import Fill from '@/components/tem/Fill'
import Sharepage from '@/components/tem/Sharepage'
import Mjfull from '@/components/tem/Mjfull'
import Mzfull from '@/components/tem/Mzfull'


Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [{
      path: '/',
      name: 'main',
      component: Main,
      props: true,

    }, {
      path: '/mjfull',
      name: 'mjfull',
      component: Mjfull
    },
    {
      path: '/mzfull',
      name: 'mzfull',
      component: Mzfull
    },
    {
      path: '/sharepage',
      name: 'sharepage',
      component: Sharepage
    },
    {
      name: 'fillceping',
      path: '/fillceping',
      component: Fill,
      props: (route) => ({
        p: route.params.p
      })
    }, {
      name: 'fillmijue',
      path: '/fillmijue',
      component: Fill,
      props: (route) => ({
        p: route.params.p
      })
    }
  ]

})
